package main

import (
	"fmt"
)

func main() {
	var nums []int
	var num rune
	
	for {
		_, err := fmt.Scanln(&num)
		if err != nil {
			fmt.Println(nums)
			return
		}
		fmt.Println(num)
		if num == '\n' {
			break
		}
		nums = append(nums, int(num))
	}

	fmt.Println(nums)
}
